package com.fitness.fitness.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fitness.fitness.modal.user.entity.RoleUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface RoleUserMapper extends BaseMapper<RoleUser> {

    @Update("update t_role_user set role_id = #{roleId} where user_id = #{uid}")
    int updateRoleUserByUid(@Param("roleId") Long roleId, @Param("uid") Long uid);
}
